package controller;

public class MoveBackward {

	private int xStart=0;
	private int yStart=0;
	private int xEnd=0;
	private int yEnd=0;
	
	
	public MoveBackward(int xStart, int yStart, int xEnd, int yEnd){
		this.xStart = xStart;
		this.yStart = yStart;
		this.xEnd=xEnd;
		this.yEnd=yEnd;
	}

	public int getxStart(){
		return this.xStart;
	}
	
	public int getyStart(){
		return this.yStart;
	}
	
	public int getxEnd(){
		return this.xEnd;
	}
	
	public int getyEnd(){
		return this.yEnd;
	}
	
	public boolean isOpposite(MoveForward mf){
		if(mf==null){
			return false;
		}
		else if(this.xStart==mf.getxEnd()&&this.yStart==mf.getyEnd()
				&&this.xEnd==mf.getxStart()&&this.yEnd==mf.getyStart()){
			return true;
		}
		else{
			return false;
		}
	}

}
